<!DOCTYPE html>
<html lang="en">
<head>
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    <meta charset="utf-8">
    <meta name="description" content="Your description">
    <meta name="keywords" content="Your keywords">
    <meta name="author" content="Your name">
    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl ?>/css/style.css">

    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/jquery-1.6.4.min.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/cufon-yui.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/Bebas_400.font.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/Kozuka_Gothic_Pro_OpenType_400.font.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/cufon-replace.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/script.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/flashobject.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/superfish.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/floatdialog.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/tabs.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/FF-cash.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/jquery.easing.1.3.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/jquery.cycle.all.min.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/jquery.customSelect.min.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/jquery.fancybox.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/jquery.color.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/jquery.backgroundPosition.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/coin-slider.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/script.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/js/jqFancyTransitions.1.8.min.js"></script>
    <script src='<?php echo Yii::app()->theme->baseUrl ?>/js/jquery.jqtransform.js'></script>
    <link type="text/css" href="<?php echo Yii::app()->theme->baseUrl ?>/css/detail-slider.css" rel="stylesheet" />
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl ?>/js/jquery.jcarousel.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl ?>/js/jquery.pikachoose.min.js"></script>
    <script language="javascript">
        jQuery(document).ready(
            function (){
                jQuery("#detail-gallery").PikaChoose({carousel:true});
                jQuery(".jqTransform").jqTransform();
        });
    </script>

    <script src='<?php echo Yii::app()->theme->baseUrl ?>/js/jquery.jqtransform.js'></script>
    <script type="text/javascript">
        $(function() {
        //find all form with class jqtransform and apply the plugin
        $(".jqtransform").jqTransform();
    });
    </script>
	<!--[if lt IE 8]>
  		<div class='aligncenter'><a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="http://storage.ie6countdown.com/assets/100/<?php echo Yii::app()->theme->baseUrl ?>/images/banners/warning_bar_0000_us.jpg"border="0"></a></div>
 	<![endif]-->
    <!--[if lt IE 9]>
   		<script src="<?php echo Yii::app()->theme->baseUrl ?>/js/html5.js"></script>
  		<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl ?>/css/ie.css">
	<![endif]-->
    <!--[if IE 9]>
  		<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl ?>/css/ie9.css">
	<![endif]-->
</head>
<body>
<div class="main">
<!--==============================header=================================-->
<header>
    <div class="row-1">
        <h1><a href="<?php echo Yii::app()->createAbsoluteUrl('/') ?>"><?php echo CHtml::encode(Yii::app()->name); ?></a></h1>
        <ul class="top-menu">
            <?php if(!isset(Yii::app()->user->id)): ?>
                <li><a href="<?php echo Yii::app()->createAbsoluteUrl('/site/login') ?>">Login</a></li>
            <?php else: ?>
                <li><a href="<?php echo Yii::app()->createAbsoluteUrl('/site/logout') ?>">Logout</a></li>
            <?php endif ?>
            <li class="last"><a href="<?php echo Yii::app()->createAbsoluteUrl('/site/register') ?>">Register</a></li>
        </ul>
        <div class="clear"></div>
    </div>
    <div class="row-2">
        <nav>
            <?php $this->widget('zii.widgets.CMenu',array(
                'htmlOptions'=>array(
                    'class'=>'sf-menu'
                ),
                'items'=>array(
                    array(
                        'label'=>'Home',
                        'url'=>array('/'),
                        'htmlOptions'=>array('class'=>'first'),
                        'active'=>$this->id=='site' && $this->action->id=='index',
                    ),
                    array(
                        'label'=>'Find Properties',
                        'url'=>array('/site/advancedsearch'),
                        'active'=>$this->id=='site' && $this->action->id=='advancedsearch',
                    ),
                    array(
                        'label'=>'List Property',
                        'url'=>array('/site/listproperty'),
                        'active'=>$this->id=='site' && $this->action->id=='listproperty',
                    ),
                    array(
                        'label'=>'Resources',
                        'url'=>array('/resources/index'),
                        'active'=>$this->id=='resources'
                        // && $this->action->id=='index',
                    ),
                    array(
                        'label'=>'About Us',
                        'url'=>array('/site/about'),
                        'active'=>$this->id=='site' && $this->action->id=='about',
                    ),
                    array(
                        'label'=>'Contacts',
                        'url'=>array('/site/contact'),
                        'htmlOptions' => array('class'=>'last'),
                        'active'=>$this->id=='site' && $this->action->id=='contact',
                    ),
                    array(
                        'label'=>'Blog',
                        'url'=>array('/'),
                        // 'active'=>$this->id=='site' && $this->action->id=='index',
                    ),
                ),
            )); ?>
        </nav>
        <div class="clear"></div>
    </div>
</header>
<!--==============================content================================-->
<div class="content-box">
    <section id="content" class="content">
        <?php echo $content; ?>
    </section>
</div>
<!--==============================aside=================================-->
<aside>
    <div class="icon-row">
        <div class="wrapper">
            <ul class="works-list">
                <li><a class="normaltip" title="Technorati" href=""><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/item-1.jpg" alt="" /></a></li>
                <li><a class="normaltip" title="Twitter" href=""><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/item-2.jpg" alt="" /></a></li>
                <li><a class="normaltip" title="Blinklist" href=""><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/item-3.jpg" alt="" /></a></li>
                <li><a class="normaltip" title="Delicious" href=""><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/item-4.jpg" alt="" /></a></li>
                <li><a class="normaltip" title="Myspace" href=""><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/item-5.jpg" alt="" /></a></li>
                <li><a class="normaltip" title="Facebook" href=""><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/item-6.jpg" alt="" /></a></li>
                <li><a class="normaltip" title="Digg" href=""><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/item-7.jpg" alt="" /></a></li>
            </ul>
        </div>
    </div>
    <div class="row-lists">
        <div class="container_24">
            <div class="wrapper">
                <article class="grid_3">
                    <h5 class="aside-title">For Clients</h5>
                    <ul class="list-1">
                        <li><a href="">About us</a></li>
                        <li><a href="">Services</a></li>
                        <li><a href="">Presentation</a></li>
                        <li><a href="">Clients</a></li>
                    </ul>
                </article>
                <article class="grid_3 prefix_1">
                    <h5 class="aside-title">Properties</h5>
                    <ul class="list-1">
                        <li><a href="">Commercial</a></li>
                        <li><a href="">Residential</a></li>
                        <li><a href="">Luxury</a></li>
                    </ul>
                </article>
                <article class="grid_3 prefix_1">
                    <h5 class="aside-title">FAQs</h5>
                    <ul class="list-1">
                        <li><a href="">FAQs</a></li>
                        <li><a href="">Support</a></li>
                    </ul>
                </article>
                <article class="grid_3 prefix_1">
                    <h5 class="aside-title">Subscribe</h5>
                    <ul class="list-1">
                        <li><a href="">Sign up</a></li>
                        <li><a href="">Forums</a></li>
                        <li><a href="">Promotions</a></li>
                    </ul>
                </article>
                <article class="grid_6 prefix_1">
                    <dl class="l-h">
                        <dt>Demolink.org  8901 Marmora Road,<br>Glasgow,  D04 89GR.</dt>
                        <dd><strong class="color-1">Telephone: +1 959 552 5963</strong></dd>
                        <dd><strong class="color-1">FAX: +1 959 552 5963</strong></dd>
                        <dd><strong class="color-1">E-mail: <a class="link-3" href=""> mail@demolink.org</a></strong></dd>
                    </dl>
                </article>
            </div>
        </div>
    </div>
</aside>
<!--==============================footer=================================-->
<footer>
     <div class="text-bot">Real Estate &copy; <?php echo date('Y'); ?> <a href="">Privacy Policy</a><br><!-- {%FOOTER_LINK} --></div>
</footer>
</div>
<div id="dialog6" class="disable_masking"></div>
<script type="text/javascript"> Cufon.now(); </script>
<script type="text/javascript">
// alert('abc');
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-7078796-5']);
  _gaq.push(['_trackPageview']);
// console.log('abc');
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</body>
</html>